use "/Users/johnbh/Dropbox/Work/Class Experiments/Class Experiments/final dataset plos one 3.12.2019.dta", clear

ttest response if study=="Legislators" & wave==1, by(treatment)
ttest response if study=="Legislators" & wave==2, by(treatment)
ttest response if study=="Principals", by(treatment)
ttest response if study=="Mayors", by(treatment)
regress response_any treatment i.principal_study i.mayor_study i.wave, r // pooled
margins, at(treatment=(0 1))
